package server.demo.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.time.LocalDate;
import java.time.LocalTime;

public class CreateTrainRequest {
    @NotBlank(message = "车次号不能为空")
    private String trainNumber;
    
    @NotBlank(message = "车次类型不能为空")
    private String trainType;
    
    @NotNull(message = "起始站不能为空")
    private Long startStationId;
    
    @NotNull(message = "终点站不能为空")
    private Long endStationId;
    
    @NotNull(message = "发车时间不能为空")
    private LocalTime departureTime;
    
    @NotNull(message = "到达时间不能为空")
    private LocalTime arrivalTime;
    
    @NotNull(message = "出行日期不能为空")
    private LocalDate travelDate;
    
    public String getTrainNumber() {
        return trainNumber;
    }
    
    public void setTrainNumber(String trainNumber) {
        this.trainNumber = trainNumber;
    }
    
    public String getTrainType() {
        return trainType;
    }
    
    public void setTrainType(String trainType) {
        this.trainType = trainType;
    }
    
    public Long getStartStationId() {
        return startStationId;
    }
    
    public void setStartStationId(Long startStationId) {
        this.startStationId = startStationId;
    }
    
    public Long getEndStationId() {
        return endStationId;
    }
    
    public void setEndStationId(Long endStationId) {
        this.endStationId = endStationId;
    }
    
    public LocalTime getDepartureTime() {
        return departureTime;
    }
    
    public void setDepartureTime(LocalTime departureTime) {
        this.departureTime = departureTime;
    }
    
    public LocalTime getArrivalTime() {
        return arrivalTime;
    }
    
    public void setArrivalTime(LocalTime arrivalTime) {
        this.arrivalTime = arrivalTime;
    }
    
    public LocalDate getTravelDate() {
        return travelDate;
    }
    
    public void setTravelDate(LocalDate travelDate) {
        this.travelDate = travelDate;
    }
}